package battleroom.client;

import battleroom.common.Constants;
import com.jme3.app.SimpleApplication;
import com.jme3.network.Client;
import com.jme3.network.Network;
import com.jme3.renderer.RenderManager;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * Main
 * @author teejdeej
 */
public class ClientMain extends SimpleApplication {
    private Client client;
    
    public static void main(String[] args) {
        ClientMain app = new ClientMain();
        app.start();
    }

    @Override
    public void simpleInitApp() {
        try {
            client = Network.connectToServer(Constants.GAME_NAME, Constants.GAME_VERSION,
                    "localhost", Constants.NETWORK_PORT);
        } catch (IOException ex) {
            Logger.getLogger(ClientMain.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        
    }

    @Override
    public void simpleUpdate(float tpf) {
        
    }

    @Override
    public void simpleRender(RenderManager rm) {
        
    }
}
